Skip to content

Fix update command incorrectly reports "already at latest" after successful update#35

Merged
einari merged 2 commits into
mainfrom
copilot/fix-update-issue
Jun 16, 2026
Merged

Fix update command incorrectly reports "already at latest" after successful update#35
einari merged 2 commits into
mainfrom
copilot/fix-update-issue

Conversation

Copilot AI commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

The cratis update command updates the on-disk binary but then checks the version of the currently running process, which hasn't changed. This caused it to report "Already at the latest version (1.6.1)" even after successfully installing 1.6.2.

Fixed

The update command now checks for available updates BEFORE running the
update process, stores the expected new version, and reports that version
after successful update. This fixes the issue where running "cratis update"
would always show "Already at the latest version" even when an update was
available, because the currently running process version cannot change
until the CLI is restarted.

Also added user guidance that the new version will be active when they
run 'cratis' again.
Copilot AI changed the title [WIP] Fix update command to detect new versions correctly Fix update command incorrectly reports "already at latest" after successful update Jun 16, 2026
Copilot AI requested a review from einari June 16, 2026 14:07
@einari einari marked this pull request as ready for review June 16, 2026 14:12
@einari einari added the patch label Jun 16, 2026
@einari einari merged commit d0538c3 into main Jun 16, 2026
@einari einari deleted the copilot/fix-update-issue branch June 16, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants